package MyBlog.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import MyBlog.biz.CategoryBiz;
import MyBlog.dao.CategoryDao;
import MyBlog.entity.Category;

@Service("categoryBiz")
public class CategoryBizImpl implements CategoryBiz {

	@Autowired
	private CategoryDao categoryDao;

	@Override
	public List<Category> getListByUserId(int userId) {
		return categoryDao.getListByUserId(userId);
	}

	@Override
	public Category ftechById(int cid) {
		return categoryDao.ftechById(cid);
	}
	
}
